package com.yz.lzq.liwushuo.utils;

import android.content.Context;
import android.content.Intent;

/**
 * Created by Administrator on 2016/12/12.
 * 用来操作activity一些常用方法的工具类
 */

public class ActivityUtil {
    public static void statActivity(Context mthis, Class other) {
        Intent intent = new Intent(mthis, other);
        mthis.startActivity(intent);
    }

    public static void statActivity(Context mthis, Class other, String targetUrl, String tittle) {
        Intent intent = new Intent(mthis, other);
        intent.putExtra("targetUrl", targetUrl);
        intent.putExtra("tittle", tittle);
        mthis.startActivity(intent);
    }
    public static void statActivity(Context mthis, Class other, int itemId) {
        Intent intent = new Intent(mthis, other);
        intent.putExtra("itemId", itemId);
        mthis.startActivity(intent);
    }

    public static void startWebViewActivity(Context mthis, Class other, String[] strings) {
        Intent intent = new Intent(mthis, other);
        intent.putExtra("strings", strings);
        mthis.startActivity(intent);
    }
}
